#include "UdpServer.hpp"
#include "UdpClient.hpp"


//测试服务端
int main(int argc,char* argv[])
{
    if(argc!=2)
    {
        std::cerr<<"Usage: "<<argv[0]<<" port"<<std::endl;
        return 1;
    }
    std::string ip="127.0.0.1";//本地环回
    int port=atoi(argv[1]);
    UdpServer* svr=new UdpServer(ip,port);
    svr->InitServer();
    svr->Start();
    return 0;
}


